package com.ruoyi.project.loan.mapper;

import com.ruoyi.project.loan.domain.LoanApplication;

import java.util.List;

/**
 * 贷款申请Mapper接口
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public interface LoanApplicationMapper {
    /**
     * 查询贷款申请
     *
     * @param applicationId 贷款申请主键
     * @return 贷款申请
     */
    public LoanApplication selectLoanApplicationByApplicationId(Long applicationId);

    /**
     * 查询贷款申请列表
     *
     * @param loanApplication 贷款申请
     * @return 贷款申请集合
     */
    public List<LoanApplication> selectLoanApplicationList(LoanApplication loanApplication);

    /**
     * 新增贷款申请
     *
     * @param loanApplication 贷款申请
     * @return 结果
     */
    public int insertLoanApplication(LoanApplication loanApplication);

    /**
     * 修改贷款申请
     *
     * @param loanApplication 贷款申请
     * @return 结果
     */
    public int updateLoanApplication(LoanApplication loanApplication);

    /**
     * 删除贷款申请
     *
     * @param applicationId 贷款申请主键
     * @return 结果
     */
    public int deleteLoanApplicationByApplicationId(Long applicationId);

    /**
     * 批量删除贷款申请
     *
     * @param applicationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLoanApplicationByApplicationIds(Long[] applicationIds);
}
